<template>
	<view>
		<u-cell-group>
			<u-cell @click="toHouseInfo(title + ' ' + title[title.length-3] + '0' + (item + 1))" v-for="item in num"
				:key="item" :title="title + ' ' + title[title.length-3] + '0' + (item + 1)" isLink></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				num: null
			}
		},
		methods: {
			toHouseInfo(title) {
				uni.navigateTo({
					url: '/pkg-house/add-house-info/add-house-info?title=' + title
				})
			}
		},
		onLoad(options) {
			this.num = Math.ceil(Math.random() * 9);
			// console.log(this.num);
			this.title = options.title
		}
	}
</script>

<style>

</style>
